Subroutines in a graphical query builder

ABSTRACT

A system may determine metadata information associated with data included in a data structure. The system may identify a category, associated with the data, based on the metadata information. The system may present, for display, a user interface that allows a user to build a graphical query based on the category. The graphical query may include a user-defined visual representation of a data structure query associated with the data. The system may receive information associated with the graphical query based on presenting the user interface. The information associated with the graphical query may be received based on input provided via the user interface, and may include information associated with the category. The system may provide the information associated with the graphical query.

BACKGROUND

A database may include an organized collection of data that is stored bya device. A user, associated with the device, may determine particulardata included in the database using a database query. The database querymay be constructed (e.g., using structure query language (“SQL”)) andprovided to the device, such that the device may provide, to the user,the particular data that is responsive to the database query.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1A-1C are diagrams of an overview of an example implementationdescribed herein;

FIG. 2 is a diagram of an example environment in which systems and/ormethods, described herein, may be implemented;

FIG. 3 is a diagram of example components of one or more devices of FIG.2;

FIG. 4 is a flow chart of an example process for storing informationassociated with a category of data included in a data structure;

FIGS. 5A and 5B are diagrams of an example implementation relating tothe example process shown in FIG. 4;

FIG. 6 is a flow chart of an example process for receiving and storinginformation associated with a graphical data structure query that isbased on a category of data included in a data structure;

FIGS. 7A-7C are diagrams of an example implementation relating to theexample process shown in FIG. 6;

FIG. 8 is a flow chart of an example process for determining anddisplaying information associated with a stored graphical query; and

FIGS. 9A and 9B are diagrams of an example implementation relating tothe example process shown in FIG. 8.

DETAILED DESCRIPTION

The following detailed description of example implementations refers tothe accompanying drawings. The same reference numbers in differentdrawings may identify the same or similar elements.

A group of data structures (e.g., data structures, where each datastructure includes data) may be stored in one or more storage locationsby one or more server devices. A user (e.g., associated with a userdevice) may wish to determine a particular portion of data that may beincluded in the group of data structures (e.g., the particular portionof data may be scattered throughout the group of data structures). Onemethod for determining the particular data sought by the user is togenerate a data structure query that, when provided to the one or moreserver devices, may allow the user to receive (e.g., via the userdevice) the particular data (e.g., the data that is responsive to thequery). However, the user may be unable to generate program codeassociated with the data structure query (e.g., when the user isunfamiliar with writing program code for a data structure query). Assuch, the user may wish to generate (e.g., via the user device) the datastructure query without providing the program code associated with thedata structure query. Implementations described herein may allow a userto generate (e.g., via a user device) a graphical data structure querywithout requiring the user to generate program code associated with thedata structure query. Implementations described herein may also allowthe graphical data structure query to be stored (e.g., such that thegraphical data structure query may be retrieved, modified, performed,etc. at a later time).

The description to follow will focus on data stored in databases.Implementations, described herein, are not limited to databases andequally apply to other forms of data structures, such as tables, linkedlists, etc.

FIGS. 1A-1C are diagrams of an overview of an example implementation 100described herein. For the purposes of example implementation 100, assumethat a set of server devices 1 though X (X>1) store a set of databases 1through N (N>1). Further, assume that a user device wishes to query theN databases in order to receive particular information that may bestored in one or more of the N databases. Finally, assume that a querydevice is configured to communicate with the X server devices and theuser device regarding a database query.

As shown in FIG. 1A, each of the N databases may include one or morecategories of data (e.g., category A data, category B data, category Cdata, etc.). As further shown, the query device may identify that the Ndatabases include category A data, category B data, and category C data,may store information that identifies each category, and may storemapping information associated with the data based on each category(e.g., such that data, associated with a particular category, may beretrieved at a later time based on a query associated with thecategory).

As further shown in FIG. 1A, the user device may execute a graphicalquery builder application (e.g., an application installed on the userdevice that allows the user to generate a visual representation of adatabase query). As shown, the user device may determine (e.g., based onthe information, stored by the query device, indicating that the Ndatabases include category A data, category B data, and category C data)that the graphical query may be built based on category A data, categoryB data, and category C data.

As shown in FIG. 1B, the user device may display a user interface thatallows the user to build a graphical query based on one or more of thecategories of data (e.g., category A, category B, category C). Asfurther shown, the user may provide (e.g., via the user interface) inputassociated with building the graphical query (e.g., without inputtingprogram code). As further shown, the user may indicate that the userwishes to save the graphical query, the user device may provideinformation associated with the graphical query to the query device, andthe query device may store the information associated with the graphicalquery.

For the purposes of FIG. 1C, assume that a user, associated with theuser device, wishes to retrieve a stored graphical query (e.g., agraphical query that has already been built by the user). As shown inFIG. 1C, the user device may identify (e.g., based on input from theuser) the stored graphical query, and may determine informationassociated with the graphical query based on the information thatidentifies the graphical query and information stored by the querydevice (e.g., when the query device stores the information associatedwith the stored graphical query). As further shown, the user device maydisplay the graphical query (e.g., such that the user may modify thegraphical query, such that the user may add the graphical query toanother graphical query, such that the graphical query may be performed,etc.).

In this way, a user, associated with a user device, may provide, via auser interface, graphical information associated with a database query,such that the user is not required to generate program code associatedwith the database query. Furthermore, the graphical informationassociated with the database query may be stored (e.g., such that thegraphical query may be displayed and used, modified, altered, etc. at alater time).

FIG. 2 is a diagram of an example environment 200 in which systemsand/or methods described herein may be implemented. As shown in FIG. 2,environment 200 may include a user device 210, a network 220, a querydevice 230, and a set of server devices 240-1 through 240-N (N>1)(hereinafter collectively referred to as “server devices 240,” andindividually as “server device 240”).

User device 210 may include one or more devices capable of communicatingwith other devices (e.g., query device 230, server device 240, etc.) viaa network (e.g., network 220), and/or capable of receiving informationprovided by another device (e.g., query device 230). For example, userdevice 210 may include a wired communication device, a wirelesscommunication device, a radiotelephone, a personal communications system(“PCS”) terminal (e.g., that may combine a cellular radiotelephone withdata processing and data communications capabilities), a personaldigital assistant (“PDA”) (e.g., that can include a radiotelephone, apager, Internet/intranet access, etc.), a smart phone, a desktopcomputer, a laptop computer, a tablet computer, or a similar type ofdevice. In some implementations, user device 210 may be capable ofreceiving, storing, executing, and/or processing information associatedwith building a graphical query associated with query device 230 and/orserver device 240. Additionally, or alternatively, user device 210 maybe capable of executing, hosting, and/or managing a graphical querybuilder application that allows a user to provide input (e.g., via atouch screen, via a keyboard, etc.), associated with building thegraphical query.

Network 220 may include one or more wired and/or wireless networks. Forexample, network 220 may include a cellular network, a public landmobile network (“PLMN”), a local area network (“LAN”), a wide areanetwork (“WAN”), a metropolitan area network (“MAN”), a telephonenetwork (e.g., the Public Switched Telephone Network (“PSTN”)), an adhoc network, an intranet, the Internet, a fiber optic-based network,and/or a combination of these or other types of networks. In someimplementations, network 220 may allow communication between devices,such as user device 210, query device 230, and/or server device 240.

Query device 230 may include a device, such as a server, capable ofreceiving, sending, processing, and/or storing information associatedwith a graphical query associated with a database stored by serverdevice 240. In some implementations, query device 230 may host and/orexecute applications and/or services, such as a graphical query builderapplication service, and may provide such services to user device 210.For example, server device 240 may include an application server. Insome implementations, server device 240 may be capable of receiving,from server device 240, metadata information, and identifying a categoryassociated with the metadata information. Additionally, oralternatively, query device 230 may be capable of generating and/orstoring mapping information associated with the metadata information andthe category (e.g., such that query device 230 may retrieve data,associated with the metadata information, based on the category).

Server device 240 may include a device capable of receiving, sending,processing, and/or storing information associated with a database. Forexample, server device 240 may include a server device. In someimplementations, server device 240 may be capable of receiving, sending,and/or storing metadata information associated with a category of datathat may be used, by a user of user device 210, to build a graphicalquery. Additionally, or alternatively, server device 240 may be capableof providing data (e.g., included in a database) to query device 230and/or user device 210.

The number of devices and networks shown in FIG. 2 is provided forexplanatory purposes. In practice, there may be additional devicesand/or networks, fewer devices and/or networks, different devices and/ornetworks, or differently arranged devices and/or networks than thoseshown in FIG. 2. Furthermore, two or more of the devices shown in FIG. 2may be implemented within a single device, or a single device shown inFIG. 2 may be implemented as multiple, distributed devices.Additionally, one or more of the devices of environment 200 may performone or more functions described as being performed by another one ormore of the devices of environment 200. Devices of environment 200 mayinterconnect via wired connections, wireless connections, or acombination of wired and wireless connections.

FIG. 3 is a diagram of example components of a device 300. Device 300may correspond to user device 210, query device 230, and/or serverdevice 240. Additionally, or alternatively, each of user device 210,query device 230, and/or server device 240 may include one or moredevices 300 and/or one or more components of device 300. As shown inFIG. 3, device 300 may include a bus 310, a processor 320, a memory 330,an input component 340, an output component 350, and a communicationinterface 360.

Bus 310 may include a path that permits communication among thecomponents of device 300. Processor 320 may include a processor, amicroprocessor, and/or any processing component (e.g., afield-programmable gate array (“FPGA”), an application-specificintegrated circuit (“ASIC”), etc.) that interprets and/or executesinstructions. In some implementations, processor 320 may include one ormore processor cores. Memory 330 may include a random access memory(“RAM”), a read only memory (“ROM”), and/or any type of dynamic orstatic storage device (e.g., a flash memory, a magnetic memory, anoptical memory, etc.) that stores information and/or instructions foruse by processor 320.

Input component 340 may include any component that permits a user toinput information to device 300 (e.g., a keyboard, a keypad, a mouse, abutton, a switch, etc.). Output component 350 may include any componentthat outputs information from device 300 (e.g., a display, a speaker,one or more light-emitting diodes (“LEDs”), etc.).

Communication interface 360 may include any transceiver-like component,such as a transceiver and/or a separate receiver and transmitter, thatenables device 300 to communicate with other devices and/or systems,such as via a wired connection, a wireless connection, or a combinationof wired and wireless connections. For example, communication interface360 may include a component for communicating with another device and/orsystem via a network. Additionally, or alternatively, communicationinterface 360 may include a logical component with input and outputports, input and output systems, and/or other input and outputcomponents that facilitate the transmission of data to and/or fromanother device, such as an Ethernet interface, an optical interface, acoaxial interface, an infrared interface, a radio frequency (“RF”)interface, a universal serial bus (“USB”) interface, or the like.

Device 300 may perform various operations described herein. Device 300may perform these operations in response to processor 320 executingsoftware instructions included in a computer-readable medium, such asmemory 330. A computer-readable medium is defined as a non-transitorymemory device. A memory device includes memory space within a singlephysical storage device or memory space spread across multiple physicalstorage devices.

Software instructions may be read into memory 330 from anothercomputer-readable medium or from another device via communicationinterface 360. When executed, software instructions stored in memory 330may cause processor 320 to perform one or more processes that aredescribed herein. Additionally, or alternatively, hardwired circuitrymay be used in place of or in combination with software instructions toperform one or more processes described herein. Thus, implementationsdescribed herein are not limited to any specific combination of hardwarecircuitry and software.

The number of components shown in FIG. 3 is provided for explanatorypurposes. In practice, device 300 may include additional components,fewer components, different components, or differently arrangedcomponents than those shown in FIG. 3.

FIG. 4 is a flow chart of an example process 400 for storing informationassociated with a category of data included in a data structure. In someimplementations, one or more process blocks of FIG. 4 may be performedby query device 230. In some implementations, one or more process blocksof FIG. 4 may be performed by another device or a group of devicesseparate from or including query device 230, such as user device 210and/or server device 240.

As shown in FIG. 4, process 400 may include determining metadatainformation associated with data included in a data structure (block410). For example, query device 230 may determine metadata informationassociated with data included in a database stored by server device 240.In some implementations, query device 230 may determine the metadatainformation when server device 240 provides the metadata information(e.g., when the metadata information is stored by server device 240 andserver device 240 provides the metadata information). Additionally, oralternatively, query device 230 may determine the metadata informationwhen query device 230 requests the metadata information (e.g., fromserver device 240).

Metadata information may include information, associated with dataincluded in a database, that may be used to identify a category of thedata. For example, the metadata information may include a name of afield included in the database, a name of a table included in thedatabase, a type of data included in the database (e.g., a string, aninteger, a date, etc.), a lookup table associated with the database, oranother type of information associated with the data. In someimplementations, the metadata information may be used by query device230 to identify a category associated with the data (e.g., such thatquery device 230 may categorize portions of data from one or moredatabases into a group of categories based on the metadata information).

In some implementations, query device 230 may determine the metadatainformation based on information received from server device 240. Forexample, query device 230 may send, to server device 240, a request toprovide the metadata information (e.g., associated with a database), andserver device 240 may provide the metadata information to query device230.

Additionally, or alternatively, query device 230 may determine themetadata information based on information received from user device 210.For example, query device 230 may receive, from user device 210,information indicating that query device 230 is to retrieve the metadatainformation (e.g., when a user of user device 210 wishes to build agraphical query), and query device 230 may retrieve the metadatainformation from server device 240.

Additionally, or alternatively, query device 230 may determine themetadata information at a particular interval of time (e.g., when querydevice 230 is configured to request metadata information every two days,every hour, etc.). Additionally, or alternatively, query device 230 maydetermine the metadata information based on server device 240 updatingdata included in a database (e.g., when server device 240 is configuredto provide updated metadata information to query device 230 each timedata, included in a database stored by server device 240, is updated,altered, modified, etc.).

As further shown in FIG. 4, process 400 may include identifying acategory of the data based on the metadata information (block 420). Forexample, query device 230 may identify a category of the data, stored byserver device 240, based on the metadata information, associated withthe data, received by query device 230. In some implementations, querydevice 230 may identify the category of the data when query device 230receives the metadata information associated with the data (e.g., afterserver device 240 provides the metadata information). Additionally, oralternatively, query device 230 may identify the category of the datawhen query device 230 receives information, indicating that query device230 is to identify the category of the data, from another device (e.g.,user device 210, server device 240, etc.).

A category of data may include a group of data regarded as having ashared characteristic. In some implementations, query device 230 mayidentify a category, associated with data included in a database, basedon the metadata information associated with the data. For example, afield name (e.g., “cost”) associated with data included in a firstdatabase (e.g., that identifies a first set products) may be used toidentify that the field includes data associated with a particularcategory (e.g., product cost). Similarly, a field name (e.g., “cost”)associated with data included in a second database (e.g., thatidentifies a second set of products) may be used to identify that thefield also includes data associated with the particular category (e.g.,product cost).

In some implementations, query device 230 may identify a group ofcategories associated with a database. For example, query device 230 mayreceive metadata information associated with data included in adatabase, and query device 230 may determine that the database includesdata associated with multiple categories (e.g., more than one categoryof data may be included in a single database). Additionally, oralternatively, query device 230 may identify a category of data as beingincluded in a group of databases. For example, query device 230 mayreceive metadata information associated with data stored in group ofdatabases (e.g., stored by a group of server devices 240), and querydevice 230 may determine that the group of databases includesinformation associated with a particular category (e.g., more than onedatabase may include data associated with a single category).

In some implementations, query device 230 may identify a category and asub-category of the data based on the metadata information. For example,query device 230 may receive metadata information associated with aportion of data that identifies a particular characteristic (e.g., afirst name of a customer), and query device 230 may identify a categoryof the data (e.g., personal information) and a sub-category of thecategory of the data (e.g., first name) based on the metadatainformation.

In some implementations, query device 230 may identify the category ofdata to allow query device 230 to provide, to user device 210,information that identifies the category of data such that the user ofuser device 210 may build a graphical query (e.g., using a graphicalquery builder application), associated with one or more databases, basedon the category of data.

As further shown in FIG. 4, process 400 may include storing informationassociated with the category of the data (block 430). For example, querydevice 230 may store information associated with the category of thedata. In some implementations, query device 230 may store theinformation associated with the category of the data when query device230 identifies the category of the data (e.g., after query device 230identifies the category based on the metadata information).Additionally, or alternatively, query device 230 may store informationassociated with the category of the data when query device 230 receivesinformation, indicating that query device 230 is to store theinformation associated with the category of the data, from anotherdevice (e.g., user device 210, server device 240, etc.).

In some implementations, query device 230 may store the informationassociated with the category of the data in a memory location (e.g., aRAM, a hard disk, etc.) query device 230. Additionally, oralternatively, query device 230 may store the information associatedwith the category of the data in a memory location associated with agraphical query builder application (e.g., such that query device 230may provide the information to user device 210 when the user wishes tobuild a graphical query based on the category of the data).

In some implementations, query device 230 may store information (e.g.,data mapping information), associated with the category of the data,that may allow query device 230 to determine a response to a graphicalquery at a later time. For example, query device 230 may identify acategory of data included in a database, and may store data mappinginformation that allows query device 230 to read the data, based onidentifying the data as being associated with the category, when querydevice 230 determines a response to a graphical query (e.g., receivedfrom user device 210). In this way, query device 230 may perform thegraphical query without duplicating the data stored in the database(e.g., the data may be mapped based on the category).

Although FIG. 4 shows example blocks of process 400, in someimplementations, process 400 may include additional blocks, differentblocks, fewer blocks, or differently arranged blocks than those depictedin FIG. 4. Additionally, or alternatively, one or more of the blocks ofprocess 400 may be performed in parallel.

FIGS. 5A and 5B are diagrams of an example implementation 500 relatingto example process 400 shown in FIG. 4. For the purposes of exampleimplementation 500, assume that each server device included in a groupof server devices (e.g., SD1 through SD4) stores a different database,and that each database includes data associated with employees of acompany. Further, assume that a query device, QD, is positioned tocommunicate with each of the server devices such that QD may receivemetadata information associated with each database.

As shown in FIG. 5A, a first database, DB1, may store informationassociated with a group of employee identification (“EID”) numbers andinformation that identifies a location associated with eachcorresponding EID number. As shown, a second database, DB2, may storeinformation associated with the group of EID numbers and informationthat identifies a salary associated with each corresponding EID number.As further shown, a third database, DB3, may store informationassociated with the group of EID numbers and information that identifiesa department associated with each corresponding EID number. As furthershown, a fourth database, DB4, may store information associated with thegroup of EID numbers and information that identifies a salary associatedwith each corresponding EID number.

As further shown in FIG. 5A, QD may receive, from SD1, metadatainformation included in DB1 (e.g., a first field name, “EID”, and asecond field name “Location”). As shown, QD may also receive, from SD2,metadata information included in DB2 (e.g., a first field name, “EID”,and a second field name “Salary”). As further shown, QD may receive,from SD3, metadata information included in DB3 (e.g., a first fieldname, “EID”, and a second field name “Department”). As also shown, QDmay receive, from SD4, metadata information included in DB4 (e.g., afirst field name, “EID”, and a second field name “Salary”).

As shown in FIG. 5B, QD may receive the metadata information (e.g., thefield names) from each of the server devices, and QD may identify (e.g.,based on the field names received from each server device) a set ofcategories of data associated with each database. As shown, QD mayidentify an employee ID category of data and an employee locationcategory of data as being included in DB1. As further shown, QD mayidentify the employee ID category of data and an employee salarycategory of data as being included in DB2. As shown, QD may identify theemployee ID category of data and an employee department category of dataas being included in DB3. As also shown, QD may identify the employee IDcategory of data and the employee salary category of data as beingincluded in DB4. As further shown, QD may store information thatidentifies the each category of data included in DB1 through DB4, alongwith mapping information (e.g., such that QD may read the data at alater time when performing a query).

As indicated above, FIGS. 5A and 5B are provided merely as an example.Other examples are possible and may differ from what was described withregard to FIGS. 5A and 5B.

FIG. 6 is a flow chart of an example process 600 for receiving andstoring information associated with a graphical database query that isbased on a category of data included in a database. In someimplementations, one or more process blocks of FIG. 6 may be performedby user device 210. In some implementations, one or more process blocksof FIG. 6 may be performed by another device or a group of devicesseparate from or including user device 210, such as query device 230and/or server device 240.

As shown in FIG. 6, process 600 may include determining information thatidentifies a category of data associated with building a graphical query(block 610). For example, user device 210 may determine information thatidentifies a category of data associated with building a graphicalquery. In some implementations, user device 210 may determine theinformation that identifies the category of data when user device 210receives information (e.g., user input) indicating that a user of userdevice 210 wishes to build a graphical query (e.g., using a graphicalquery builder application hosted by user device 210 and/or query device230). Additionally, or alternatively, user device 210 may determine theinformation that identifies the category of data when user device 210executes the graphical query builder application (e.g., when user device210 starts executing the application). Additionally, or alternatively,user device 210 may determine the information that identifies thecategory of data when user device 210 receives information, indicatingthat user device 210 is to determine the information that identifies thecategory of data, from another device (e.g., query device 230, serverdevice 240, etc.).

In some implementations, user device 210 may determine the informationthat identifies the category of data based on information received fromquery device 230. For example, user device 210 may send, to query device230 (e.g., when query device 230 stores the information that identifiesthe category of data), a request to provide the information, and userdevice 210 may determine the information that identifies the category ofdata based on the information received from query device 230.

Additionally, or alternatively, user device 210 may determine theinformation that identifies the category of data based on informationstored by user device 210 (e.g., when user device 210 stores theinformation that identifies the category of data. Additionally, oralternatively, user device 210 may determine the information thatidentifies the category of data based on information received fromanother device (e.g., server device 240).

In some implementations, the information that identifies the category ofdata may be used by the graphical query builder application such thatthe user of user device 210 may build a graphical query based on thecategory of data (e.g., when the user wishes to build the graphicalquery based on the category). In some implementations, user device 210may determine information that identifies a group of categories of data(e.g., when one or more portions of data, included in a database storedby server device 240, is associated with one or more categories ofdata). In some implementations, user device 210 may determine theinformation that identifies the group of categories and the user mayselect (e.g., via input provided to user device 210) a set of categoriesincluded in the group of categories that the user wishes to use withinthe graphical query builder application (e.g., when the user wishes touse only the selected set of categories to build the graphical query).

As further shown in FIG. 6, process 600 may include presenting, fordisplay, a user interface associated with building the graphical querybased on the category of data (block 620). For example, user device 210may present, for display, a user interface associated with building thegraphical query based on the category of data. In some implementations,user device 210 may present the user interface when user device 210determines the information that identifies the category of data (e.g.,after user device 210 determines the information that identifies thecategory of data). Additionally, or alternatively, user device 210 maypresent the user interface when user device 210 receives information,indicating that user device 210 is to present the user interface, fromanother device (e.g., query device 230, server device 240, etc.).

In some implementations, user device 210 may present, for display, auser interface (e.g., via a graphical query builder application) thatallows the user to build the graphical query. For example, user device210 may present, for display, a user interface that includes one or moreinput elements (e.g., a text box, a radio button, a check box, a dropdown menu, a button, etc.) that allow the user to provide inputassociated with building the graphical query.

Additionally, or alternatively, the user interface may include theinformation that identifies a group of categories of data. For example,user device 210 may present, for display, a user interface that includesinformation that identifies the group of categories of data (e.g., adrop down menu that includes the one or more categories of data) suchthat the user may select one or more categories of the group ofcategories of data to be included in the graphical query.

Additionally, or alternatively, the user interface may includeinformation that identifies one or more operators (e.g., AND, OR, IN,GREATER THAN, LESS THAN, EQUAL, etc.) associated with filtering databased on a condition specified by the user. For example, user device 210may present, for display a user interface that includes information thatidentifies one or more operators (e.g., a drop down menu) such that theuser may select an operator to be included in the graphical query.

As further shown in FIG. 6, process 600 may include receiving, via theuser interface, input associated with building the graphical query(block 630). For example, user device 210 may receive, via the userinterface, input associated with building the graphical query. In someimplementations, user device 210 may receive the input when user device210 presents the user interface for display (e.g., after user device 210displays the user interface). Additionally, or alternatively, userdevice 210 may receive the input when the user provides the input (e.g.,via an input component associated with user device 210, such as akeyboard, a mouse, a touch screen, etc.).

In some implementations, the input, associated with building thegraphical query, may cause user device 210 to display a visualrepresentation of a portion of the graphical query associated with theinput (e.g., the user interface may display a portion of the graphicalquery as the user provides the input). In some implementations, thegraphical query (e.g., generated based on the input from the user) maybe displayed in the form of a visual tree that contains elementsassociated with portions of the graphical query (e.g., an elementassociated with a category, an element associated with an operator,etc.). Additionally, or alternatively, the graphical query may bedisplayed in another visual form.

In this way, the user may build a graphical query (e.g., a visualrepresentation of a query) without requiring the user to have knowledgeregarding program code that may be used to generate the query (e.g., theuser will not be required to provide program code associated with an SQLquery). This may allow the user to easily create complex queries basedon a number of categories of data selected by the user.

In some implementations, the user of user device 210 may wish to receivedata that is responsive to the graphical query, and user device 210 mayprovide the information associated with the graphical query to querydevice 230. Query device 230 may receive the information associated withthe graphical query, may convert the graphical query into a query thatmay be used to search the database (e.g., based on mapping information,stored by query device 230, associated with data included in eachcategory of data identified in the query), may output the query suchthat a database search may be performed, and may provide, to user device210, a response to the query based on a result of the database search.

As further shown in FIG. 6, process 600 may include providing, forstorage, information associated with the graphical query (block 640).For example, user device 210 may provide, for storage, informationassociated with the graphical query built via the user interfacepresented by user device 210. In some implementations, user device 210may provide the information when user device 210 receives the inputassociated with building the graphical query (e.g., after the userbuilds the graphical query via the user interface). Additionally, oralternatively, user device 210 may provide the information when userdevice 210 receives, from the user, input indicating that user device210 is to provide the information (e.g., when the user provides inputindicating that the graphical query is to be stored). Additionally, oralternatively, user device 210 may provide the information when userdevice 210 receives information, indicating that user device 210 is toprovide the information, from a device associated with storing theinformation associated with the graphical query, such as query device230 and/or server device 240.

Information associated with the graphical query may include information,based on the input associated with the graphical query, that, whenretrieved at a later time, may cause user device 210 to display thegraphical query (e.g., such that the graphical query may be performed,modified, altered, etc.). In some implementations, the informationassociated with the graphical query may include a query identifier(e.g., a string of characters, a query ID number) that identifies thegraphical query. In some implementations, user device 210 may providethe information associated with the graphical query to a storagelocation (e.g., a RAM, a hard disk, etc.) of user device 210 forstorage. Additionally, or alternatively, user device 210 may provide theinformation associated with the graphical query to another device forstorage, such as query device 230 and/or server device 240.

Although FIG. 6 shows example blocks of process 600, in someimplementations, process 600 may include additional blocks, differentblocks, fewer blocks, or differently arranged blocks than those depictedin FIG. 6. Additionally, or alternatively, one or more of the blocks ofprocess 600 may be performed in parallel.

FIGS. 7A-7C are diagrams of an example implementation 700 relating toexample process 600 shown in FIG. 6. For the purposes of exampleimplementation 700, assume that a user device, UD1, stores informationassociated with a graphical query builder application that may be usedto build a graphical query. Further, assume that a query device, QD,stores information that identifies a group of categories, associatedwith a group of databases (e.g., stored by a group of server devices),that may be used to build the graphical query.

As shown in FIG. 7A, UD1 may execute (e.g., based on input from theuser) the graphical query builder application, and UD1 may send, to QD,a request associated with determining information that identifies one ormore categories of data that may be used to build the graphical query.As shown, QD may receive the request, and may determine (e.g., based oninformation stored by QD) information that identifies four categories ofdata that may be used to build the graphical query. As shown, the fourcategories of data may include an employee ID category, an employeesalary category, an employee location category, and an employeedepartment category. As further shown, QD may provide the informationthat identifies each category of data to UD1.

As further shown in FIG. 7A, UD1 may receive the information thatidentifies each of the four categories, and UD1 may provide (e.g., via auser interface associated with the graphical query builder application)the information that identifies the four categories. As further shown,the user may provide (e.g., via a drop down menu, via a group of checkboxes) input indicating that the user wishes to build a graphical querythat determines data associated with one or more employee IDs based ondata associated with an employee location (e.g., associated with eachemployee ID), an employee department (e.g., associated with eachemployee ID), and an employee salary (e.g., associated with eachemployee ID). As shown, the user may indicate that the user wishes tobegin building the graphical query (e.g., by selecting a START button).

As shown in FIG. 7B, user device 210 may present, for display, a userinterface associated with building the employee ID query, and the usermay provide input associated with building the graphical query. Asshown, the user may provide (e.g., via drop down menus, via a text box)input indicating that a first branch of the graphical query is toinclude all employee IDs associated with an employee location in Texasor Ohio. As further shown, the user may provide (e.g., by selecting a“+” button) input indicating that the user wishes to add a second branch(e.g., an AND branch) to the first branch of the graphical query.

As further shown in FIG. 7B, the user may provide (e.g., via drop downmenus, via a text box) input indicating that the second branch of thegraphical query is to include all employee IDs associated with anemployee department in marketing. As further shown, the user may provide(e.g., by selecting a “+” button) input indicating that the user wishesto add a third branch (e.g., an OR branch) to the second branch of thegraphical query.

As shown in FIG. 7C, the user may provide input (e.g., via drop downmenus, via a text box) indicating that the third branch of the graphicalquery is to include all employee IDs associated with a salary greaterthan $90,000. As shown, the three branches of the graphical query may beused to determine a group of employee IDs (e.g., that identify employeesof a company) located in Texas or Ohio that are associated with amarketing department, or a group of employee IDs (e.g., that identifyemployees of a company) located in Texas or Ohio that are associatedwith a salary greater than $90,000.

As further shown in FIG. 7C, the user may provide input (e.g., via aSave button) indicating that the graphical query is to be stored (e.g.,such that the user may retrieve the graphical query at a later time). Asshown, the user may provide an identifier for the graphical query (e.g.,“TXOH”) and UD1 may provide information associated with the TXOHgraphical query to QD. As shown, QD may receive the informationassociated with the TXOH graphical query, and QD may store theinformation.

As indicated above, FIGS. 7A-7C are provided merely as an example. Otherexamples are possible and may differ from what was described with regardto FIGS. 7A-7C.

FIG. 8 is a flow chart of an example process 800 for determining anddisplaying information associated with a stored graphical query. In someimplementations, one or more process blocks of FIG. 8 may be performedby user device 210. In some implementations, one or more process blocksof FIG. 8 may be performed by another device or a group of devicesseparate from or including user device 210, such as query device 230and/or server device 240.

As shown in FIG. 8, process 800 may include receiving informationassociated with loading a stored graphical query (block 810). Forexample, user device 210 may receive information associated with loadinga graphical query stored by query device 230. In some implementations,user device 210 may receive the information when a user, associated withuser device 210, provides (e.g., via an input component of user device210) information associated with loading the graphical query.

In some implementations, information associated with loading a graphicalquery may include information indicating that a user of user device 210wishes to retrieve (e.g., from storage) information associated with agraphical query (e.g., such that the user may modify the informationassociated with the graphical query, such that the user may add theinformation associated with the graphical query to another graphicalquery, etc.). In some implementations, the information associated withloading the graphical query may include a query identifier (e.g., astring of characters, a query ID number, etc.) that identifies thegraphical query. Additionally, or alternatively, the informationassociated with loading the graphical query may include information thatidentifies a storage location (e.g., a file path that identifies astorage location, etc.) of the stored graphical query.

As further shown in FIG. 8, process 800 may include determininginformation associated with the stored graphical query (block 820). Forexample, user device 210 may determine information associated with thestored graphical query. In some implementations, user device 210 maydetermine the information associated with the stored graphical querywhen user device 210 receives the information associated with loadingthe stored graphical query. Additionally, or alternatively, user device210 may determine the information associated with the stored graphicalquery when user device 210 receives information, indicating that userdevice 210 is to determine the information associated with the storedgraphical query, from another device (e.g., query device 230, serverdevice 240, etc.).

In some implementations, user device 210 may determine the informationassociated with the stored graphical query based on the informationassociated with loading the stored graphical query. For example, theinformation associated with loading the stored graphical query mayinclude information that identifies the stored graphical query (e.g., aquery identifier, a file path, etc.), and user device 210 may determinethe information associated with the stored graphical query based on theinformation that identifies the stored graphical query.

Additionally, or alternatively, user device 210 may determine theinformation associated with the stored graphical query based oninformation stored by query device 230. For example, user device 210 mayreceive information indicating that query device 230 stores theinformation associated with the stored graphical query, and user device210 may send, to query device 230, a request to provide the informationassociated with the stored graphical query. Additionally, oralternatively, user device 210 may determine the information associatedwith the stored graphical query based on information stored by anotherdevice (e.g., server device 240).

As shown in FIG. 8, process 800 may include presenting, for display, theinformation associated with the stored graphical query (block 830). Forexample, user device 210 may present, for display, the informationassociated with the stored graphical query. In some implementations,user device 210 may present the information associated with the storedgraphical query when user device 210 determines the informationassociated with the stored graphical query. Additionally, oralternatively, user device 210 may present the information associatedwith the stored graphical query when user device 210 receivesinformation, indicating that user device 210 is to present theinformation associated with the stored graphical query, from anotherdevice (e.g., query device 230, server device 240, etc.).

In some implementations, user device 210 may present, for display, theinformation associated with the stored graphical query to allow the userto modify the information associated with the stored graphical query(e.g., when the user wishes to add and/or remove information to and/orfrom the information associated with the stored graphical query).

Additionally, or alternatively, user device 210 may present theinformation associated with the stored graphical query to allow the user(e.g., via query device 230) to perform a query identified by theinformation associated with the stored graphical query (e.g., when theuser wishes to receive data that is responsive to the query).

Additionally, or alternatively, user device 210 may present theinformation associated with the stored graphical query to allow the userto add the information associated with the stored graphical query toother information associated with another graphical query (e.g., whenthe user wishes to combine two queries, etc.).

In this way, a user, associated with user device 210, may retrieveinformation associated with a stored graphical query. This may allow theuser to build queries efficiently (e.g., a user will not be required torebuild a stored graphical query), and may promote consistency and/oraccuracy when building queries (e.g., since the information associatedwith the stored graphical query will be identical each time theinformation is retrieved from storage).

Although FIG. 8 shows example blocks of process 800, in someimplementations, process 800 may include additional blocks, differentblocks, fewer blocks, or differently arranged blocks than those depictedin FIG. 8. Additionally, or alternatively, one or more of the blocks ofprocess 800 may be performed in parallel.

FIGS. 9A and 9B are diagrams of an example implementation 900 relatingto example process 800 shown in FIG. 8. For the purposes of exampleimplementation 900, assume that a user of a user device, UD1, wishes tobuild a graphical query (e.g., via a graphical query builder applicationrunning on UD1). Further, assume that a query device, QD, storesinformation associated with a stored graphical query, identified asTXOH.

As shown in FIG. 9A, the user may provide (e.g., via UD1) inputassociated with building the graphical query. As shown, the user mayprovide input (e.g., via drop down menus, via a text box) indicatingthat a first branch of the graphical query is to determine all employeeIDs associated with an employee location in California.

As further shown, the user may indicate (e.g., by selecting a Loadbutton), that the user wishes to retrieve information associated with astored graphical query (e.g., such that the stored graphical query maybe added to the graphical query built by the user). As further shown,the user may select (e.g., via a drop down menu) information thatidentifies the TXOH stored graphical query (e.g., when UD1 storesinformation that identifies the stored graphical query). As shown, theuser may select a stored graphical query, identified as TXOH, and mayindicate (e.g., by clicking an OK button) that the user wishes to loadthe TXOH graphical query.

As shown in FIG. 9B, UD1 may determine information associated with thestored TXOH graphical query by sending, to QD, a request that includesthe information that identifies the TXOH graphical query. As furthershown, QD may retrieve the request associated with the stored graphicalquery, and may provide information associated with the graphical queryto UD1. As further shown, UD1 may display the TXOH graphical query basedon receiving the information associated with the stored TXOH graphicalquery (e.g., via the graphical query builder) such that the stored TXOHgraphical query has been added to the graphical query built by the user.

As indicated above, FIGS. 9A and 9B are provided merely as an example.Other examples are possible and may differ from what was described withregard to FIGS. 9A and 9B.

Implementations described herein may allow a user to generate (e.g., viaa user device) a graphical database query without requiring the user togenerate program code associated with the database query.Implementations described herein may also allow the graphical databasequery to be stored (e.g., such that the graphical database query may beretrieved and used at a later time).

The foregoing disclosure provides illustration and description, but isnot intended to be exhaustive or to limit the implementations to theprecise form disclosed. Modifications and variations are possible inlight of the above disclosure or may be acquired from practice of theimplementations.

As used herein, the term component is intended to be broadly construedas hardware, firmware, or a combination of hardware and software.

Certain user interfaces have been described herein. In someimplementations, the user interfaces may be customizable by a device ora user. Additionally, or alternatively, the user interfaces may bepre-configured to a standard configuration, a specific configurationbased on a type of device on which the user interfaces are displayed, ora set of configurations based on capabilities and/or specificationsassociated with a device on which the user interfaces are displayed.

To the extent the aforementioned implementations collect, store, oremploy personal information provided by individuals, it should beunderstood that such information shall be used in accordance with allapplicable laws concerning protection of personal information. Storageand use of personal information may be in an appropriately secure mannerreflective of the type of information, for example, through variousencryption and anonymization techniques for particularly sensitiveinformation.

It will be apparent that systems and/or methods, as described herein,may be implemented in many different forms of software, firmware, andhardware in the implementations shown in the figures. The actualsoftware code or specialized control hardware used to implement thesesystems and/or methods is not limiting of the implementations. Thus, theoperation and behavior of the systems and/or methods were describedwithout reference to the specific software code—it being understood thatsoftware and control hardware can be designed to implement the systemsand/or methods based on the description herein.

Even though particular combinations of features are recited in theclaims and/or disclosed in the specification, these combinations are notintended to limit the disclosure of possible implementations. In fact,many of these features may be combined in ways not specifically recitedin the claims and/or disclosed in the specification. Although eachdependent claim listed below may directly depend on only one claim, thedisclosure of possible implementations includes each dependent claim incombination with every other claim in the claim set.

No element, act, or instruction used herein should be construed ascritical or essential unless explicitly described as such. Also, as usedherein, the articles “a” and “an” are intended to include one or moreitems, and may be used interchangeably with “one or more.” Where onlyone item is intended, the term “one” or similar language is used.Further, the phrase “based on” is intended to mean “based, at least inpart, on” unless explicitly stated otherwise.

What is claimed is:
 1. A system, comprising: one or more devices to:determine metadata information associated with data included in a datastructure; identify a category, associated with the data, based on themetadata information; present, for display, a user interface that allowsa user to build a graphical query based on the category, the graphicalquery including a user-defined visual representation of a data structurequery associated with the data; receive information associated with thegraphical query based on presenting the user interface, the informationassociated with the graphical query being received based on inputprovided via the user interface, and the information associated with thegraphical query including information associated with the category; andprovide the information associated with the graphical query.
 2. Thesystem of claim 1, where the one or more devices are further to: storeinformation associated with the category based on identifying thecategory; and where the one or more devices, when presenting, fordisplay, the user interface that allows the user to build the graphicalquery based on the category, are further to: present, within the userinterface, the stored information associated with the category.
 3. Thesystem of claim 1, where the one or more devices, when presenting, fordisplay, the user interface that allows the user to build the graphicalquery, are further to: present, within the user interface, a group ofinput elements that can be manipulated by the user to allow the user tobuild the graphical query.
 4. The system of claim 1, where the userinterface includes at least one of: a drop down menu associated withbuilding the graphical query; a text box associated with building thegraphical query; a check box associated with building the graphicalquery; or a button associated with building the graphical query.
 5. Thesystem of claim 1, where the one or more devices are further to: receiveinformation associated with a group of categories to be included in thegraphical query, the group of categories including the category; andwhere the one or more processors, when presenting, for display, the userinterface that allows the user to build the graphical query, are furtherto: present, within the user interface, the information associated withthe group of categories.
 6. The system of claim 1, where the one or moredevices, when providing the information associated with the graphicalquery, are further to: provide the information associated with thegraphical query to a device associated with storing the informationassociated with the graphical query.
 7. The system of claim 1, where theone or more devices are further to: determine information associatedwith a stored graphical query; and where the one or more devices, whenpresenting, for display, the user interface are further to: present, fordisplay, the information associated with the stored graphical query. 8.A computer-readable medium storing instructions, the instructionscomprising: one or more instructions that, when executed by one or moreprocessors, cause the one or more processors to: receive metadataassociated with data stored in a data structure; determine, based on themetadata, a category associated with the data; present, for display, auser interface associated with building a graphical query based on thecategory, the graphical query including a visual representation of adata structure query used to search the data in the data structure;receive information associated with the graphical query via the userinterface the information associated with the graphical query includinginformation indicating the data structure query is to be based on thecategory; and provide the information associated with the graphicalquery.
 9. The computer-readable medium of claim 8, where the one or moreinstructions, when executed by the one or more processors, further causethe one or more processors to: store information associated with thecategory based on determining the category; and where the one or moreinstructions, that cause the one or more processors to present, fordisplay, the user interface associated with building the graphicalquery, further cause the one or more processors to: present, for displaywithin the user interface, the stored information associated with thecategory.
 10. The computer-readable medium of claim 8, where the one ormore instructions, that cause the one or more processors to present, fordisplay, the user interface associated with building the graphicalquery, further cause the one or more processors to: present, for displaywithin the user interface, a group of input elements that can bemanipulated by the user to allow the user to build the graphical query.11. The computer-readable medium of claim 8, where the one or moreinstructions, when executed by the one or more processors, further causethe one or more processors to: receive the information associated withthe graphical query; convert the information associated with thegraphical query into a query used to search the data structure; outputthe query such that a data structure search may be performed based onthe query; and provide a response to the query based on a result of thedata structure search.
 12. The computer-readable medium of claim 8,where the one or more instructions, when executed by the one or moreprocessors, further cause the one or more processors to: receiveinformation associated with a set of categories to be included in thegraphical query, the set of categories including the category; and wherethe one or more instructions, that cause the one or more processors topresent, for display, the user interface associated with building thegraphical query, further cause the one or more processors to: present,for display within the user interface, the information associated withthe set of categories.
 13. The computer-readable medium of claim 8,where the one or more instructions, that cause the one or moreprocessors to provide the information associated with the graphicalquery, further cause the one or more processors to: provide theinformation associated with the graphical query to a device associatedwith storing the information associated with the graphical query. 14.The computer-readable medium of claim 8, where the one or moreinstructions, when executed by the one or more processors, further causethe one or more processors to: determine information associated with astored graphical query; and where the one or more instructions, thatcause the one or more processors to present, for display, the userinterface associated with building the graphical query, further causethe one or more processors to: present, for display, the informationassociated with the stored graphical query.
 15. A method, comprising:determining, by one or more devices, information associated with dataincluded in a data structure; identifying, by the one or more devices, acategory of the data based on the information associated with the data;presenting, by the one or more devices, a user interface for building agraphical query, the graphical query including a visual tree thatidentifies a query associated with the data; and receiving, by the oneor more devices, information associated with the graphical query via theuser interface, the information associated with the graphical queryincluding information associated with the category of the data; andcausing, by the one or more devices, the information associated with thegraphical query to be stored.
 16. The method of claim 15, furthercomprising: storing information associated with the category based onidentifying the category; and where presenting the user interface forbuilding the graphical query further comprises: presenting, within theuser interface, the stored information associated with the category. 17.The method of claim 15, where presenting the user interface for buildingthe graphical query further comprises: presenting, within the userinterface, a group of input elements that can be selected by a user toallow the user to build the graphical query.
 18. The method of claim 15,where the user interface includes at least one of: a drop down menuassociated with building the graphical query; a text box associated withbuilding the graphical query; a check box associated with building thegraphical query; or a button associated with building the graphicalquery.
 19. The method of claim 15, further comprising: receivinginformation associated with a group of categories to be included in thegraphical query, the group of categories including the category; andwhere presenting the user interface for building the graphical queryfurther comprises: presenting, within the user interface, theinformation associated with the group of categories.
 20. The method ofclaim 15, further comprising: determining information associated with astored graphical query; and where presenting the user interface forbuilding the graphical query further comprises: presenting theinformation associated with the stored graphical query.